<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.io.FileSystem</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.io.FileSystem");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/FileSystem.d?rev=3791">tango.io.FileSystem</a></h1>
                
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Version:</b><br>
Mar 2004: Initial release<br><br>
<b>Version:</b><br>
Feb 2007: Now using mutating paths<br><br>
<b>author:</b><br>Kris, Chris Sauls &#40;Win95 file support&#41;<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>struct <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/FileSystem.d?rev=3791#L47">FileSystem</a></span>
<script>explorer.outline.addDecl('FileSystem');</script>;</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Models an OS-specific file-system. Included here are methods to
        manipulate the current working directory, and to convert a path
        to its absolute form.</font><br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>FilePath <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/FileSystem.d?rev=3791#L60">toAbsolute</a></span>
<script>explorer.outline.addDecl('toAbsolute');</script>(FilePath <span class="funcparam">target</span>, char[] <span class="funcparam">prefix</span> = null); [static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert the provided path to an absolute path, using the
                current working directory where prefix is not provided. 
                If the given path is already an absolute path, return it 
                intact.</font><br><br>
<font color="black">Returns the provided path, adjusted as necessary<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>char[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/FileSystem.d?rev=3791#L83">toAbsolute</a></span>
<script>explorer.outline.addDecl('toAbsolute');</script>(char[] <span class="funcparam">path</span>, char[] <span class="funcparam">prefix</span> = null); [static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert the provided path to an absolute path, using the
                current working directory where prefix is not provided. 
                If the given path is already an absolute path, return it 
                intact.</font><br><br>
<font color="black">Returns the provided path, adjusted as necessary<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/FileSystem.d?rev=3791#L100">equals</a></span>
<script>explorer.outline.addDecl('equals');</script>(char[] <span class="funcparam">path1</span>, char[] <span class="funcparam">path2</span>, char[] <span class="funcparam">prefix</span> = null); [static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Compare to paths for absolute equality. The given prefix
                is prepended to the paths where they are not already in
                absolute format &#40;start with a '/'&#41;. Where prefix is not
                provided, the current working directory will be used</font><br><br>
<font color="black">Returns true if the paths are equivalent, false otherwise<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/FileSystem.d?rev=3791#L111">exception</a></span>
<script>explorer.outline.addDecl('exception');</script>(char[] <span class="funcparam">msg</span>); [private, static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (c) 2004 Kris Bell. All rights reserved :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sat Aug  2 16:08:33 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>